/**
 * 数据分析页面
 */
define(["jquery", 'echarts', 'bootstrap'], function($,echarts){

    // 路径
    var path;
    // 页面初始化
    function initEvents(){

    }
    // echart init
    function initEchart(){
        var option = {
            xAxis: {
                type: 'category',
                data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
            },
            yAxis: {
                type: 'value'
            },
            series: [{
                data: [820, 932, 901, 934, 1290, 1330, 1320],
                type: 'line',
                smooth: true
            }]
        };
        var myChart = echarts.init(document.getElementById('dataAnalysisEchart'));
        myChart.setOption(option);


    }
    return {
        init: function(options){
            options = $.extend(true, {}, options);
            path = 'html/pages/dataAnalysis.html';
            $('#mainContent').load(path, function(){
                initEchart();
                initEvents();
                options.callback();
            })


        }
    }
})
